/*****************************************************************************
 *
 *                      HUSONG PROPRIETARY INFORMATION
 *
 *          The information contained herein is proprietary to HUSONG
 *           and shall not be reproduced or disclosed in whole or in part
 *                    or used for any design or manufacture
 *              without direct written authorization from HUSONG.
 *
 *            Copyright (c) 2015 by HUSONG.  All rights reserved.
 *
 *****************************************************************************/
package com.husong.cons;

import java.io.Serializable;

/**
 * @author maxmin
 *
 * @date 2015年11月9日 上午11:46:09
 */
@SuppressWarnings("serial")
/**
 * 服务端返回码
 * @author maxmin
 *
 * @date 2015年11月9日 下午12:12:54
 */
public class ReturnCodeAndMsg implements Serializable {

	/**
	 * 成功
	 */
	public final static int SUCCESS = 1000;
	public final static String SUCCESS_MSG = "success";

	/**
	 * 未登录
	 */
	public final static int UNAUTHORIZED = 1001;
	public final static String UNAUTHORIZED_MSG = "请登录";

	/**
	 * 帐号或密码错误
	 */
	public final static int LOGIN_ERROR = 1002;
	public final static String LOGIN_ERROR_MSG = "账号或密码错误";

	/**
	 * 帐号不存在
	 */
	public final static int ACCOUNT_NOT_EXSIST = 1003;
	public final static String ACCOUNT_NOT_EXSIST_MSG = "帐号不存在,请先注册";

	/**
	 * 帐号已存在
	 */
	public final static int ACCOUNT_IS_EXSIST = 1004;
	public final static String ACCOUNT_IS_EXSIST_MSG = "帐号已存在,请登录";

	/**
	 * 注册失败
	 */
	public final static int ACCOUNT_REGIST_FAIL = 1005;
	public final static String ACCOUNT_REGIST_FAIL_MSG = "帐号注册失败，请重试";

	/**
	 * 验证码为空
	 */
	public final static int  VALICODE_IS_EMPTY= 1006;
	public final static String VALICODE_IS_EMPTY_MSG = "请填写验证码";

	/**
	 * 验证码错误
	 */
	public final static int  VALICODE_ERROR= 1007;
	public final static String VALICODE_ERROR_MSG = "验证码错误";

	/**
	 * 订单创建失败
	 */
	public final static int  CREATE_ORDER_FAIL= 1008;
	public final static String CREATE_ORDER_FAIL_MSG = "订单创建失败";

	/**
	 * 服务器内部错误
	 */
	public final static int SERVER_ERROR = 1099;
	public final static String SERVER_ERROR_MSG = "服务器内部错误";
	
	/**
	 * 已抢过单
	 */
	public final static int ORDER_HAD_GRAB = 1009;
	public final static String ORDER_HAD_GRAB_MSG = "已抢过该订单";
	
	/**
	 * 在限制抢单时间内抢单
	 */
	public final static int ORDER_LIMET_GRAB_TIME = 1010;
	public final static String ORDER_LIMET_GRAB_TIME_MSG = "2分钟之内无法连续抢单";
	
	/**
	 * 不能抢自己发布的订单
	 */
	public final static int ORDER_LIMT_BY_SELF = 1011;
	public final static String ORDER_LIMT_BY_SELF_MSG = "不能抢自己发布的订单";
	
	/**
	 * 请先通过认证再抢单吧
	 */
	public final static int ORDER_GRAB_NEED_AUTHEN = 1012;
	public final static String ORDER_GRAB_NEED_AUTHEN_MSG = "请先通过认证再抢单吧";
	
	/**
	 * 申请认证中，请通过认证后再抢单
	 */
	public final static int ORDER_GRAB_NEED_AUTHEN_PASS = 1013;
	public final static String ORDER_GRAB_NEED_AUTHEN_PASS_MSG = "申请认证中，请通过认证后再抢单";
	
	/**
	 * 经纪人功能不可用，无法抢单，请联系客服
	 */
	public final static int ORDER_GRAB_NEED_AUTHEN_ABLE = 1014;
	public final static String ORDER_GRAB_NEED_AUTHEN_ABLE_MSG = "经纪人功能不可用，无法抢单，请联系客服";
	
	/**
	 * 认证经纪人被拒绝，无法抢单，请联系客服
	 */
	public final static int ORDER_GRAB_NEED_AUTHEN_REFUSE = 1015;
	public final static String ORDER_GRAB_NEED_AUTHEN_REFUSE_MSG = "认证经纪人被拒绝，无法抢单，请联系客服";
	
	/**
	 * 雇主已经选择经纪人，抢单失败
	 */
	public final static int ORDER_HAD_CHECKED = 1016;
	public final static String ORDER_HAD_CHECKED_MSG = "雇主已经选择经纪人，抢单失败";
	/**
	 * 雇主已经取消订单，抢单失败
	 */
	public final static int ORDER_HAD_CANCLED = 1017;
	public final static String ORDER_HAD_CANCLED_MSG = "雇主已经取消订单，抢单失败";
	
	/**
	 * 支付密码输入错误
	 */
	public final static int WALLET_PASSWORD_ILLEGAL = 1018;
	public final static String WALLET_PASSWORD_ILLEGAL_MSG = "支付密码输入错误";
	
	
	/**
	 * 支付钱包不存在
	 */
	public final static int WALLET_NOT_EXSITS = 1019;
	public final static String WALLET_NOT_EXSITS_MSG = "支付钱包不存在";
	
	
	/**
	 * 支付钱包余额不足
	 */
	public final static int WALLET_BALANCE_IS_LACK = 1020;
	public final static String WALLET_BALANCE_IS_LACK_MSG = "支付钱包余额不足";
	

	
	/**
	 * 获取微信预支付订单号失败
	 */
	public final static int GET_PREPAYID_FAIL = 1021;
	public final static String GET_PREPAYID_FAIL_MSG = "获取微信预支付订单号失败";
	
	/**
	 * 可取余额不足，请重新输入
	 */
	public final static int WALLET_WITHDRAW_IS_LACK = 1022;
	public final static String WALLET_WITHDRAW_IS_LACK_MSG = "可取余额不足，请重新输入";
	/**
	 * 该订单需要申请，待经纪人同意才能取消
	 */
	public final static int NEED_REQUEST_CANCEL = 1023;
	public final static String NEED_REQUEST_CANCEL_MSG = "该订单需要申请，待经纪人同意才能取消";
	/**
	 * 当前订单状态不能申请取消订单
	 */
	public final static int CANNOT_REQUEST_CANCEL = 1024;
	public final static String CANNOT_REQUEST_CANCEL_MSG = "当前订单状态不能申请取消订单";
	/**
	 * 不能重复申请取消订单
	 */
	public final static int REPEAT_REQUEST_CANCEL = 1025;
	public final static String REPEAT_REQUEST_CANCEL_MSG = "不能重复申请取消订单";
	
	/**
	 * 您已经抢过该单了，不能再抢了
	 */
	public final static int ORDER_HAD_GRABED = 1026;
	public final static String ORDER_HAD_GRABED_MSG = "您已经抢过该单了，不能再抢了";
	
	/**
	 * 验证码已过期，请重新发送
	 */
	public final static int  VALICODE_OVERDUE= 1027;
	public final static String VALICODE_OVERDUE_MSG = "验证码已过期，请重新发送";
	
}
